package at.spengergasse.dao;

import java.sql.Connection;
import java.util.List;

import at.spengergasse.model.ModelBase;

public interface DAO<T extends ModelBase>
{

	public int save(Connection connection, T object);

	public int delete(Connection connection, T object);

	public T findById(Connection connection, Long id);

	public List<T> findAll(Connection connection);

}
